package com.ruoyi.resume.utils.minIO;

import io.minio.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 该类为文件上传服务
 * */
@Configuration
public class MinIOConfig {
    @Bean
    public MinioClient minioClient() {
        return MinioClient.builder()
                .endpoint("http://47.106.154.179:9000")  // MinIO服务地址
                .credentials("minioadmin", "minioadmin")   // 访问密钥
                .build();
    }

}
